# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy

# 新房
class NewHouseItem(scrapy.Item):
    # 省份
    province = scrapy.Field()
    # 城市
    city = scrapy.Field()
    # 小区名字
    name = scrapy.Field()
    # 价格
    price = scrapy.Field()
    # 类型：几居室
    types = scrapy.Field()
    # 面积
    area = scrapy.Field()
    # 地址
    address = scrapy.Field()
    # 行政区
    region = scrapy.Field()
    # 是否在售
    sale = scrapy.Field()
    # 详情页链接
    origin_url = scrapy.Field()

# 二手房
class EsfItem(scrapy.Item):
    # 省份
    province = scrapy.Field()
    # 城市
    city = scrapy.Field()
    # 标题名字
    title = scrapy.Field()
    # 小区名字
    name = scrapy.Field()
    # 价格
    price = scrapy.Field()
    # 均价
    ave_price = scrapy.Field()
    # 类型：几居室
    types = scrapy.Field()
    # 楼层
    floor = scrapy.Field()
    # 面积
    area = scrapy.Field()
    # 地址
    address = scrapy.Field()
    # 朝向
    orientation = scrapy.Field()
    # 建造年份
    build_year = scrapy.Field()
    # 详情页链接
    origin_url = scrapy.Field()
